<?php
/**
 * Created by PhpStorm.
 * User: yhb
 * Date: 2019/3/25
 * Time: 9:23
 */

namespace app\index\model;


use think\Model;

class Product extends Model
{
    public function getImageThumbAttr($value)
    {
        if (!empty($value)) {
            return 'http://malladmin.alixi.cn/uploads/product/' . $value;
        } else {
            return $value;
        }
    }
}